package com.gzx.plugin.tjzy.modular.district.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.tjzy.modular.district.entity.GzxRegionDistrict;
import com.gzx.plugin.tjzy.modular.district.mapper.GzxRegionDistrictMapper;
import com.gzx.plugin.tjzy.modular.district.service.GzxRegionDistrictListService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2024/12/18 17:11
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class GzxRegionDistrictListServiceImpl implements GzxRegionDistrictListService {

    private final GzxRegionDistrictMapper regionDistrictMapper;

    /**
     * 获取所有省市区
     *
     * @return
     */
    @Override
    @DS("tjzy")
    public List<GzxRegionDistrict> getRegionDistrictList() {
        return regionDistrictMapper.selectList(null);
    }
}
